<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>Simple Canvas Game</title>
		<script>
			function $$(id) {
				return document.getElementById(id);
			}
			window.onload = function() {
				var cnv = $$("canvas");
				var cxt = cnv.getContext("2d");
				
				var image = new Image();
				image.src = "images/background.png";
				
				image.onload =function(){
					cxt.drawImage(image,40,39);
				}
				
			}
		</script>
	</head>
	<body>
		<script src="js/game.js"></script>
		
	</body>
</html>
